import requests 
import sys

#取日K线数据
def getData(future_code):
    url_str = ('http://stock2.finance.sina.com.cn/futures/api/json.php/IndexService.getInnerFuturesDailyKLine?symbol=' + future_code) 
    r = requests.get(url_str)
    r_json = r.json() 
    r_lists = list(r_json)
    return r_lists
